package com.imc.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ImcOrgan entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "imc_organ", catalog = "imcdbserver")
public class ImcOrgan implements java.io.Serializable {

	// Fields

	private Integer corpId;
	private String corpName;
	private String corpDate;
	private String passwd;
	private String email;
	private Integer school;
	private Integer corpParentid;
	private short smsPower;
	private String county;
	private String city;
	private String province;
	private String type;

	// Constructors

	/** default constructor */
	public ImcOrgan() {
	}

	/** minimal constructor */
	public ImcOrgan(String county, String city, String province, String type) {
		this.county = county;
		this.city = city;
		this.province = province;
		this.type = type;
	}

	/** full constructor */
	public ImcOrgan(String corpName, String corpDate, String passwd,
			String email, Integer school, Integer corpParentid, short smsPower,
			String county, String city, String province, String type) {
		this.corpName = corpName;
		this.corpDate = corpDate;
		this.passwd = passwd;
		this.email = email;
		this.school = school;
		this.corpParentid = corpParentid;
		this.smsPower = smsPower;
		this.county = county;
		this.city = city;
		this.province = province;
		this.type = type;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "corp_id", unique = true, nullable = false)
	public Integer getCorpId() {
		return this.corpId;
	}

	public void setCorpId(Integer corpId) {
		this.corpId = corpId;
	}

	@Column(name = "corp_name", length = 100)
	public String getCorpName() {
		return this.corpName;
	}

	public void setCorpName(String corpName) {
		this.corpName = corpName;
	}

	@Column(name = "corp_date", length = 20)
	public String getCorpDate() {
		return this.corpDate;
	}

	public void setCorpDate(String corpDate) {
		this.corpDate = corpDate;
	}

	@Column(name = "passwd", length = 20)
	public String getPasswd() {
		return this.passwd;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}

	@Column(name = "email", length = 20)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "school")
	public Integer getSchool() {
		return this.school;
	}

	public void setSchool(Integer school) {
		this.school = school;
	}

	@Column(name = "CORP_PARENTID")
	public Integer getCorpParentid() {
		return this.corpParentid;
	}

	public void setCorpParentid(Integer corpParentid) {
		this.corpParentid = corpParentid;
	}

	@Column(name = "sms_power")
	public short getSmsPower() {
		return this.smsPower;
	}

	public void setSmsPower(short smsPower) {
		this.smsPower = smsPower;
	}

	@Column(name = "county", nullable = false, length = 20)
	public String getCounty() {
		return this.county;
	}

	public void setCounty(String county) {
		this.county = county;
	}

	@Column(name = "city", nullable = false, length = 20)
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "province", nullable = false, length = 20)
	public String getProvince() {
		return this.province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	@Column(name = "type", nullable = false, length = 10)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

}